package com.example.springbootsfzy.service.gengyifei;

import com.example.springbootsfzy.domain.ConsultantLevels;
import com.example.springbootsfzy.mapper.ConsultantLevelsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class consultant_levels_service {
    @Autowired
    private ConsultantLevelsMapper consultantLevelsMapper;

    //通过主键删除  等级信息
    public int deleteByPrimaryKey(int level_id) {
        return consultantLevelsMapper.deleteByPrimaryKey(level_id);
    }



    //插入等级信息 通过信息
    public int insert(ConsultantLevels record) {
        return consultantLevelsMapper.insert(record);
    }


    //通过信息静态更改等级信息
    public int  updateByPrimaryKey(ConsultantLevels record){
        return consultantLevelsMapper.updateByPrimaryKey(record);
    }

    //通过主键查询等级信息
    public ConsultantLevels selectByPrimaryKey(int level_id) {
        return consultantLevelsMapper.selectByPrimaryKey(level_id);
    }

    //查询所有 等级信息
    public List<ConsultantLevels> selectAll() {
        return consultantLevelsMapper.selectAll();
    }
}
